package com.neusoft.nepm.controller;

import com.neusoft.nepm.po.GridCity;
import com.neusoft.nepm.service.IGridCityService;
import com.neusoft.nepm.vo.ResponseData;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author zouran
 * createDate：2023/6/19  14:40
 */
@RestController
@RequestMapping("/gridCity")
@Api(tags = "市管理接口")
public class GridCityController {
    @Autowired
    private IGridCityService gridCityService;

    /**
    *根据省编号查询市信息接口
    */
    @GetMapping("/listGridCityByProvinceId")
    public ResponseData<List<GridCity>> listGridCityByProvinceId(Integer provinceId){
        return gridCityService.listGridCityByProvinceId(provinceId);
    }
}
